Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable 6 second block times for people chain #308

Conversation

s0me0ne-unkn0wn
Copy link
Contributor

This is an excerpt from #266. It aims to enable 6-second block times for people parachain only.

If I'm not missing anything, the people parachain is the only parachain not affected by paritytech/polkadot-sdk#3268, and thus, 6-second block times may be enabled without breaking something.

This PR was tested locally using the kusama-local relay chain. The time of the session within which the runtime upgrade was enacted expectedly deviated, but other than that, no problems were observed.

@s0me0ne-unkn0wn s0me0ne-unkn0wn mentioned this pull request May 23, 2024
9 tasks
@github-actions github-actions bot requested a review from ordian June 8, 2024 10:15
Copy link

github-actions bot commented Jun 8, 2024

Review required! Latest push from author must always be reviewed

CHANGELOG.md Show resolved Hide resolved
system-parachains/people/people-kusama/src/lib.rs Outdated Show resolved Hide resolved
system-parachains/people/people-kusama/src/lib.rs Outdated Show resolved Hide resolved
system-parachains/people/people-kusama/src/lib.rs Outdated Show resolved Hide resolved
Comment on lines +103 to +105
/// Maximum number of blocks simultaneously accepted by the Runtime, not yet included
/// into the relay chain.
pub const UNINCLUDED_SEGMENT_CAPACITY: u32 = 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems pretty conservative. What is the tradeoff with higher values? More forks?

IMO in general we should on Kusama be a little more aggressive with parameterization. If that doesn't apply to this value, ignore :).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC higher values don't make real sense if we're targeting 6 seconds with velocity == 1. I mean, we can set it higher, but we'll still be getting 6 seconds %)

s0me0ne-unkn0wn and others added 3 commits June 12, 2024 09:51
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
…ople' into s0me0ne/enable-6sec-blocktime-people
@s0me0ne-unkn0wn
Copy link
Contributor Author

/merge

@fellowship-merge-bot
Copy link
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

@fellowship-merge-bot fellowship-merge-bot bot enabled auto-merge (squash) June 14, 2024 13:18
@fellowship-merge-bot fellowship-merge-bot bot merged commit bd1759c into polkadot-fellows:main Jun 20, 2024
40 of 41 checks passed
@s0me0ne-unkn0wn s0me0ne-unkn0wn deleted the s0me0ne/enable-6sec-blocktime-people branch June 20, 2024 13:04
fellowship-merge-bot bot pushed a commit that referenced this pull request Oct 1, 2024
Encointer communities could benefit from 6s block time because the
network is used for IRL point-of-sale or person-to-person transactions

Encointer is unaffected by
paritytech/polkadot-sdk#3268 as its pallets
have since ever based time on block timestamps

The parameters are copy-paste from people, as introduced by #308

---------

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants